CPPFLAGS = -O0 -g3 -Wall -fmessage-length=0

all: main_c main_a

clean-intermediate:
	cd src && make clean

clean-executable:
	rm -f main_c main_a

clean: clean-intermediate clean-executable

build: clean all

main_c:
	cd src && make main_c && cd .. && cp src/main_c .

main_a:
	@if [ "`uname -m`" = 'pmax' ] ; then \
		cd src && make main_a && cd .. && cp src/main_a . ;\
	else \
		echo "Solo se puede compilar main_a en arquitecturas pmax" ;\
	fi

